<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${empty stu.id ? '新增' : '修改' }学生</title>
<style type="text/css">
	*{
		text-align: center;
	}
	input{
		text-align: left;
	}
</style>
</head>
<body>
	<h3>${empty stu.id ? '新增' : '修改' }学生信息</h3>
	<form action="/student?cmd=save" method="post">
		<p>姓名：<input type="text" name="name" value="${stu.name }" required /></p>
		<p>年龄：<input type="number" name="age" value="${stu.age }" min="1"  required /></p>
		<p><button type="submit">${empty stu.id ? '保存' : '更新' }</button></p>
		<input type="hidden" name="id" value="${stu.id }" />
	</form>
</body>
</html>